package com.xyz.mockapi.common.pojo.dto;

import lombok.Data;
import java.util.List;

@Data
public class ProductOnlineResponse {
    private String message;
    private int code;
    private Data data;

    // 内部类字段类型改为无id的DTO
    public static class Data {
        // 修正：从 List<OnlineBomList> 改为 List<OnlineBomDTO>
        private List<OnlineBomDTO> onlineBomList;
        // 修正：从 OnlineProductEntity 改为 OnlineProductDTO
        private OnlineProductDTO onlineProductEntity;
        // 修正：从 BdSubProductTypeEntity 改为 BdSubProductTypeDTO
        private BdSubProductTypeDTO bdSubProductTypeEntity;

        // getter/setter 自动生成（Lombok 或手动）
        public List<OnlineBomDTO> getOnlineBomList() {
            return onlineBomList;
        }
        public void setOnlineBomList(List<OnlineBomDTO> onlineBomList) {
            this.onlineBomList = onlineBomList;
        }
        public OnlineProductDTO getOnlineProductEntity() {
            return onlineProductEntity;
        }
        public void setOnlineProductEntity(OnlineProductDTO onlineProductEntity) {
            this.onlineProductEntity = onlineProductEntity;
        }
        public BdSubProductTypeDTO getBdSubProductTypeEntity() {
            return bdSubProductTypeEntity;
        }
        public void setBdSubProductTypeEntity(BdSubProductTypeDTO bdSubProductTypeEntity) {
            this.bdSubProductTypeEntity = bdSubProductTypeEntity;
        }
    }
}